home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CinE CD 2
/
CinE CD ROM 02.iso
/
pc
/
cinecd.dir
/
00001_Script_1
next >
Wrap
Text File
|
1995-07-14
|
2KB
|
91 lines
global gNumFilms, gmachine, grootpathname, gseparator, gQTpresent, database
global gfilmsperpage, gpage, gnumpages, gdata, gscale
on startmovie
Init
end startmovie
on Init
global DEBUG
set DEBUG = 0
set gscale = 1
--determine machine type
if the machineType < 256 then
set gmachine = "mac"
else
set gmachine = "pc"
end if
if (DEBUG) then
put gmachine
end if
--define separator for mac/pc
if gmachine = "pc" then
set gseparator = "\"
else
set gseparator = ":"
end if
-- get the pathname of the projector
put the pathname into grootpathname
-- read the index file
if gmachine = "mac" then
read_index_file ("INDEXMAC.DOC")
--initRearWindow
--Coverdesktop black
else
read_index_file ("INDEXPC.DOC")
end if
makedatabase the number of cast "database"
-- there are 8 posters per index page
set gfilmsperpage = 8
-- initialize index page number
set gpage = 1
--determine and set the number of index pages
set gnumpages = gnumfilms / gfilmsperpage
if (gnumfilms mod gfilmsperpage) then
set gnumpages = gnumpages + 1
end if
--check if Quicktime is present
set gQTpresent = the quicktimepresent
if not gQTpresent then
alert "Vous devez installer le gestionnaire Quicktime d'Apple Computer Inc. pour pouvoir visualiser les bandes annonces!"
end if
--read_posters
end Init
on read_index_file fname
put FileIO (mnew, "read", the pathname & fname) into gdata
if (gdata < 0) then
alert ("Fichier INDEX non-trouvΘ, au revoir!")
quit
end if
set the text of cast the number of cast "database" = gdata (mreadfile)
gdata (mdispose)
end read_index_file
on read_posters
put gnumfilms
repeat with i = 1 to gnumfilms
set dir = getField (i, 3)
set prefix = getField (i, 4)
set the text of cast "loading" = getField (i, 2)
set mypathname = makepathname (dir, prefix, "A0.PIC")
--readmypict (mypathname, 22+j)
readmypict (mypathname, 200+i)
end repeat
end displayposters